import request from '@/utils/request';


export default {
    findOptype(pageym,pagesize,name) {
        return request({
            url: `http://localhost/api/fina/optype/findOptype?pageym=${pageym}&pagesize=${pagesize}&cartid=${name}&patiname=${name}`,
            method: 'post'
        });
    },
  
    delOptype(id){
        return request({
            url: `http://localhost/api/fina/optype/delOptype?id=${id}`,
            method: 'post'
        });
    },
    getListDto(){
        return request({
            url: `http://localhost/api/fina/optype/getListDto`,
            method: 'post'
        });
    },
    addOptype(data) {
        return request({
            url: `http://localhost/api/fina/optype/addOptype`,
            method: 'post',
            data
        });
    },
    upOptypeui(id){
        return request({
            url: `http://localhost/api/fina/optype/upOptypeui?id=${id}`,
            method: 'post',      
        });
    },
    upOptype(data) {
        return request({
            url: `http://localhost/api/fina/optype/upOptype`,
            method: 'post',
            data
        });
    },
}